import http from '@/http'
import { ListUserParam, UserModel } from './UserModel'

export const addUserApi = (param:UserModel) => {
    return http.post("/api/user",param)
}

export const getListApi = (param:ListUserParam) => {
    return http.get("/api/user/list",param)
}

export const editUserApi = (param:UserModel) => {
    return http.put("/api/user",param)
}

export const deleteUserApi = (userId:string) => {
    return http.delete(`/api/user/${userId}`)
}
